# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ftp-scanner
pkgver=0.2.5
pkgrel=2
groups=('blackarch' 'blackarch-cracker' 'blackarch-scanner')
pkgdesc='Multithreaded ftp scanner/brute forcer. Tested on Linux, OpenBSD and Solaris.'
arch=('x86_64' 'aarch64')
url='http://wayreth.eu.org/old_page/'
license=('custom:unknown')
source=("$pkgname.c::https://web.archive.org/web/20190903044318/http://wayreth.eu.org/ftp_scanner.c")
sha512sums=('ac5184ffd4c9ede89f6e3156ad95b1eb1e82ac631209399efe744aceda5201505ffc9bbc08bbda9ae447881a8a6727713c14d670a4c136d31b9cc2948d109af1')

build() {
  gcc "$pkgname.c" -o $pkgname -lpthread
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

